package com.yc.java8.collecoper;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

/**
 * Title:<br>
 * Description: <br>
 * Author:陈圆(chenyuan@bosssoft.com.cn) <br>
 * Date:2020/8/30
 */
public class DemoTestOne {

    public static void main(String[] args) {
//        List<Dish> dishs = DemoTest.getDishs();
//
//        List<Integer> collect = dishs.stream().map(Dish::getName)
//                .map(String::length)
//                .collect(Collectors.toList());
//
//        collect.forEach(e -> System.out.println(e));


        List<String> list = new ArrayList<>();
        list.add(null);
        list.add("2333");

        System.out.println();
        list.forEach(e -> System.out.println(e));
    }
}
